#define _CRT_SECURE_NO_WARNINGS

#include "vector.h"
//#include "list.h"
void test_vector1()
{
	hx::vector<int> v;
	v.push_back(1);
	v.push_back(2);
	v.push_back(3);
	v.push_back(4);
	v.push_back(4);
	v.push_back(4);
	v.push_back(4);

	hx::vector<int>::iterator it = v.begin();
	while (it != v.end())
	{
		cout << *it << " ";
		++it;
	}
	cout << endl;

	hx::vector<int>::reverse_iterator rit = v.rbegin();
	while (rit != v.rend())
	{
		cout << *rit << " ";
		++rit;
	}
	cout << endl;
}

//void test_list1()
//{
//	hx::list<int> lt1;
//	lt1.push_back(1);
//	lt1.push_back(2);
//	lt1.push_back(3);
//	lt1.push_back(4);
//
//	hx::list<int>::iterator it = lt1.begin();
//	while (it != lt1.end())
//	{
//		cout << *it << " ";
//		++it;
//	}
//	cout << endl;
//
//	hx::list<int>::reverse_iterator rit = lt1.rbegin();
//	while (rit != lt1.rend())
//	{
//		cout << *rit << " ";
//		++rit;
//	}
//	cout << endl;
//}
int main()
{
	test_vector1();
	//test_list1();
}